package test;

/**
 * Created by steve
 * 2018/8/13
 */


class Base{
    static {
        System.out.println("test.Base static block");
    }

    static {
        System.out.println("test.Base static block");
    }

    {
        System.out.println("base block");
    }

    public Base() {
        System.out.println("base constructor");
    }
}

public class StaticMethod extends Base {
    static {
        System.out.println("test.StaticMethod static block");
    }

    {
        System.out.println("test.StaticMethod block");
    }

    public StaticMethod() {
        System.out.println("test.StaticMethod constructor");
    }

    public static void main(String args[]){
        new StaticMethod();
    }
}

